<?php $this->pageTitle = Yii::app()->user->name; ?>
<div class="c_body">
	<div class="u_tabs">
		<div class="u_tabs_head ajaxLinks">
			<a class="u_tab " id="u_search_tab1" href="<?php echo Yii::app()->createUrl("messages/index", array('profile'=>Yii::app()->request->getParam('profile'))); ?>">Диалоги</a>
			<div class="u_tab curr" id="u_search_tab3">Написать сообщение</div>
		</div>
		<div class="search_block cat_search_block">
			<form action="" id="friend_search_form">
				<div class="search_fld">
					<div class="search_icon"></div>
					<input type="text" value="Начните вводить имя друга" class="search_friend" rel="<?php echo Yii::app()->createUrl('profile/autocompletefriends'); ?>" />
					<input type="hidden" id="redirect_getdialog" value="<?php echo Yii::app()->createUrl("messages/getdialog", array('profile'=>Yii::app()->request->getParam('profile'), 'companion'=>'')); ?>" />
				</div>
			</form>
		</div>
	</div>
	
	<div class="tab" id="u_search_tab3_">
		<div class="cat_head">
			<div class="cat_head_strip"></div>
			<div class="cat_head_h"><p class="cat_head_h_txt"><span class="also">Новое сообщение</span></p></div>
		</div>
		
		<div class="u_buzz" id="create_message_form">
			<form action="<?php echo Yii::app()->createUrl("messages/addmessage"); ?>" id="buzz_message">
				<div class="search_fld">
					<input type="text" value="Начните вводить имя друга" class="search_friend" rel="<?php echo Yii::app()->createUrl('profile/autocompletefriends'); ?>" />
					<input type="hidden" name="companion" id="companion_id" value="" />
					<input type="hidden" id="redirect" value="<?php echo Yii::app()->createUrl("messages/getdialog", array('profile'=>Yii::app()->request->getParam('profile'))); ?>" />
				</div>		
				<div class="flds_border">
					<div class="flds_border_inside">
						<textarea name="text" id="new_message_text">Ваше сообщение</textarea>
					</div>
				</div>
				<div class="attachment"></div>
				<div class="buzz_action">
					<div class="buzz_btn btn">
						<input type="button" value="Написать" id="new_message_button" />
					</div>
					<div class="buzz_adds">
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php echo Yii::app()->createUrl('profile/getvideosforcomment'); ?>">
							<div class="buzz_adds_item_icon i4"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить видеоролик</div></div>
						</div>
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php echo Yii::app()->createUrl('profile/getmusicsforcomment'); ?>">
							<div class="buzz_adds_item_icon i5"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить аудиозапись</div></div>
						</div>
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php echo Yii::app()->createUrl('profile/getimagesforcomment'); ?>">
							<div class="buzz_adds_item_icon i6"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить изображение</div></div>
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</form>
		</div>	
	</div>
</div>





